package model;

public class Fdy extends User {
    private String[] college; // 学院

    // 构造器
    public Fdy() {
        super();
        setPower("fdy"); // 设置 power 为 teacher
    }

    public Fdy(String id, String password, String[] college) {
        super(); // 设置 power 为 teacher
        this.college = college;
        setId(id); // 使用父类的 setId 方法设置 id
        setPassword(password); // 使用父类的 setPassword 方法设置 password
        
    }

    // Getter 和 Setter 方法
    public String[] getCollege() {
        return college;
    }

    public void setCollege(String[] college) {
        this.college = college;
    }

}

/*如果要设置数值班级
 * public class Main {
    public static void main(String[] args) {
        String[] colleges = {"Computer Science", "Mathematics", "Physics"};
        Teacher teacher = new Teacher(1, "password123", colleges);
        System.out.println(teacher);
    }
}

 */